﻿<!DOCTYPE HTML>
<html>
<head>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
	<meta http-equiv="Cache-Control" content="no-siteapp" />
	<title><{config_item('manager_title')}></title>
	<link href="/public/H-ui/css/H-ui.min.css" rel="stylesheet" type="text/css" />
	<link href="/public/H-ui/css/H-ui.admin.css" rel="stylesheet" type="text/css" />
	<link href="/public/H-ui/hui-iconfont/iconfont.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="pd-20">
	<div id="tab-system" class="HuiTab">
		<table class="table table-border table-bordered table-bg table-hover table-sort">
			<thead>
			<tr class="text-c">
				<th colspan="2">快递公司</th>
			</tr>
			</thead>
			<{foreach $list as $key}>
			<tr class="text-l">
				<td width="150"><{$key.name}></td>
				<td><a target="_blank" href="<{site_url("/manager/order/order/express_templet/<{$key.id}>/<{$order_id}>")}>">打印</a></td>
			</tr>
			<{/foreach}>
		</table>
	</div>
</div>
<script type="text/javascript" src="/public/js/jquery.js"></script>
<script type="text/javascript" src="/public/js/validform.js"></script>
<script type="text/javascript" src="/public/js/layer/layer.js"></script>
<script type="text/javascript" src="/public/js/icheck/jquery.icheck.min.js"></script>
<script type="text/javascript" src="/public/H-ui/js/H-ui.js"></script>
<script type="text/javascript" src="/public/H-ui/js/H-ui.admin.js"></script>
<script type="text/javascript">
	$(function() {
		//验证表单管理员备注
		$.Tipmsg.r = null;
		$("#admin_desc").Validform({
			tiptype: function (msg) {
				layer.msg(msg);
			},
			tipSweep: true,
			ajaxPost: true,
			callback: function (data) {
				if (data.status == "y") {
					window.location.reload();
				}
			}
		});
	})
	//菜单切换
	$(function(){
		$('.skin-minimal input').iCheck({
			checkboxClass: 'icheckbox-blue',
			radioClass: 'iradio-blue',
			increaseArea: '20%'
		});
		$.Huitab("#tab-system .tabBar span","#tab-system .tabCon","current","click","0");
	});
	layer.config({extend: 'extend/layer.ext.js'});
	//支付订单了
	function order_pay(){
		layer.prompt({
			title: '输入备注完成支付',
			formType: 2 //prompt风格，支持0-2
		}, function(note){
			//提交请求
			$.ajax({
				type:"POST",
				url: "/manager/order/order/order_pay/<{$order_data.id}>",
				data: "note="+note,
				dataType:"json",
				success: function(data){
					if (data.status=='y') {
						window.location.reload();
					} else {
						layer.msg(data.info);
					}
				}
			});
		});
	}
	//订单发货
	function order_send(){
		open_iframe('订单发货','<{site_url("/manager/order/order/order_send/<{$order_data.id}>")}>',600,350)
	}

	//订单退款
	function order_refund(){
		open_iframe('订单退款','<{site_url("/manager/order/order/refund/<{$order_data.id}>")}>',600,350)
	}

	//订单完成
	function order_confirm(){
		layer.prompt({
			title: '输入备注确认订单',
			formType: 2 //prompt风格，支持0-2
		}, function(note){
			//提交请求
			$.ajax({
				type:"POST",
				url: "/manager/order/order/confirm/<{$order_data.id}>",
				data: "note="+note,
				dataType:"json",
				success: function(data){
					if (data.status=='y') {
						window.location.reload();
					} else {
						layer.msg(data.info);
					}
				}
			});
		});
	}

	//订单作废
	function order_cancel(){
		layer.prompt({
			title: '输入备注确认作废',
			formType: 2 //prompt风格，支持0-2
		}, function(note){
			//提交请求
			$.ajax({
				type:"POST",
				url: "/manager/order/order/order_cancel/<{$order_data.id}>",
				data: "note="+note,
				dataType:"json",
				success: function(data){
					if (data.status=='y') {
						window.location.reload();
					} else {
						layer.msg(data.info);
					}
				}
			});
		});
	}
</script>
</body>
</html>